package Recursion;

//每天吃一半加一，第十天发现还剩1个
public class Monkeys_eat_peaches {
    public static void main(String[] args) {
       // Scanner sc = new Scanner(System.in);
        monkey m = new monkey();
        System.out.println(m.eat(1));
    }
}

class monkey{
    public int eat(int day){
        if(day==10){
            return 1;
        }
        else return (eat(day+1)+1)*2;
    }
}